#!/bin/bash

# Get current directory
cd "$(dirname "${BASH_SOURCE[0]}")"
cur_dir=`pwd`

# change hosts
sudo cp $cur_dir/hosts /etc/hosts

# refresh hosts
sudo killall -HUP mDNSResponder

echo '=================================== Setup hosts success! ==================================='
